
package view;

import javax.swing.JButton;
import javax.swing.JMenuItem;

import accounts.Authorization;

public class SecurityPanel extends MainPanel{
	private JButton openBtn;
	private JButton approveBtn, rejectBtn;
	
	private JMenuItem menuItem_Open, menuItem_Approve, menuItem_Reject;
	private JMenuItem menuItem_SimMode, menuItem_EditMode;
	
	public SecurityPanel(){
		super();
	}
	
	public void setupMenuBar(){
		
		menuItem_Open = new JMenuItem();
		toolbar.setAction(menuItem_Open, "Open", null);
		menuFile.add(menuItem_Open);
		
		if(authorization == Authorization.ADMINISTRATOR) {
			menuItem_EditMode = new JMenuItem();
			toolbar.setAction(menuItem_EditMode, "Edit Configuration Mode", null);
			menuMode.add(menuItem_EditMode);
			
			menuItem_SimMode = new JMenuItem();
			toolbar.setAction(menuItem_SimMode, "Simulation Mode", null);
			menuMode.add(menuItem_SimMode);
		}
		
		menuItem_Approve = new JMenuItem();
		toolbar.setAction(menuItem_Approve, "Approve", null);
		menuFile.add(menuItem_Approve);
		
		menuItem_Reject = new JMenuItem();
		toolbar.setAction(menuItem_Reject, "Reject", null);
		menuFile.add(menuItem_Reject);
		
	}
	
	
	public void setupToolbar() {
		openBtn = toolbar.makeButton("open", "Open");
		toolbar.add(openBtn);
		
		//submitBtn = makeButton("submit", "Submit Environment Configuration");
		//toolbar.add(submitBtn);
		toolbar.addSeparator();
		approveBtn = toolbar.makeButton("approve", "Approve");
		toolbar.add(approveBtn);
		
		rejectBtn = toolbar.makeButton("reject", "Reject");
		toolbar.add(rejectBtn);
		
	}
	
	public void setupCanvasPanel(){

	}
	public void setupAttributesPanel(){
		
	}
	
}
